package org.wk.account.enums;



/**
 * @ClassName	: SubAccountType
 * @Package		：org.wk.digiccy.enums
 * @Author df.w 
 * @Create Time	：2018年5月9日 下午5:43:55
 * @Description	: 账户类型
 */ 
public enum AccountType {
	JING_ZUAN("jing_zuan","鲸钻"),
	JING_YUAN("jing_yuan","鲸源"),
	JING_ZAI("jing_zai","鲸仔"),
	JING_BAO("jing_bao","鲸宝"),
	JING_ZHONG("jing_zhong","鲸种"),
	JING_LING("jing_ling","鲸灵");
	private String code;
	private String name;
	private AccountType(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static AccountType containsCode(String code) {
		for (AccountType item : AccountType.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
	
}
